<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
		 isELIgnored="false" session="true"%>

<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>

<%
	String path = request.getContextPath();

	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>



<!DOCTYPE html>

<html>

<head>

	<base href="<%=basePath%>

	">

	<title>数据收集</title>


	<%@ include file="/page/comPage/comCSS.html"%>
	<%@ include file="/page/comPage/navbar.html"%>

	<style>
		body {
			padding-top: 60px;
		}

		.keyClass {
			color: blue;
			font-weight: bold;
		}

		.keyCss:after {
			float: right;
			content: '*';
			color: red;
		}

		#dialogBisMItemForm input {
			width: 250px;
		}

		#dialogBisMItemForm select {
			width: 250px;
		}
		form .form-group {
			margin: 3px 0px;
		}

		.form-horizontal {
			padding-top: 10px;
		}
	</style>
</head>

<body>

<div class="container-fluid">
	<div class="col-lg-12 col-md-12 col-sm-12 btnDivCss" style="height:50px">
		<button class="btn btn-info" id="query_btn">
			<s:message code="QUERY_TAG" />
		</button>

		<button class="btn btn-primary" id="add_btn">
			<s:message code="ADD_TAG" />
		</button>

		<button class="btn btn-primary" id="copy_btn">
			<s:message code="COPY_TAG" />
		</button>

		<button class="btn btn-danger" id="del_btn">
			<s:message code="DELETE_TAG" />
		</button>

		<button class="btn btn-success" id="save_btn">
			<s:message code="SAVE_TAG" />
		</button>

		<button class="btn btn-warning" id="rollback_btn"><s:message code="ROLLBACK_TAG" /></button>

		<button class="btn btn-primary" id="clear_btn">
			<s:message code="CLEAR_TAG" />
		</button>

		<input  id="select_btn"  type="file" class="form-control  file" accept=".xls,.xlsx" style="display: none" />
		<button class="btn btn btn-primary" id="import_btn">EXCEL<s:message code="IMPORT_TAG" /></button>
		<button class="btn btn-warning" id="export_btn">EXCEL<s:message code="EXPORT_TAG" /></button>
		<button class="btn btn btn-warning" id="download_btn">EXCEL<s:message code="IMPORT_STENCIL"/></button>
	</div>

	<!--信息收集 -->
	<div class="col-lg-4 col-md-4 col-sm-4 leftDiv" style="position: relative">
		<fieldset>
			<legend>数据信息收集</legend>
		</fieldset>
		<div id="bisMListDiv" class="col-lg-12 col-md-12 col-sm-12">
			<table id="bisMListGrd" style="height: 1px;"></table>
			<div id="bisMListPg"></div>
		</div>
	</div>

	<div class="col-lg-8 col-md-8 col-sm-8 rightDiv" >
		<div class="row" style="margin-top: 20px; height: 20px;">
			<form id="pamConditionForm" class="form-horizontal">
				<div class="form-group col-lg-6 col-md-6 col-sm-6">
					<label class="control-label col-sm-4 keyCss" for="toolIdFk">设备代码
					</label>
					<div class="col-sm-6">
						<select id="toolIdFk" class="form-control"></select>
					</div>
				</div>

			<%--	<div class="form-group col-lg-6 col-md-6 col-sm-6">
					<label class="control-label col-sm-4 keyCss" for="mdlIdFk">产品代码
					</label>
					<div class="col-sm-6">
						<select id="mdlIdFk" class="form-control"></select>
					</div>
				</div>--%>

				<div class="form-group col-lg-6 col-md-6 col-sm-6">
					<label class="control-label col-sm-4 keyCss" for="repUnit">上报类别
					</label>
					<div class="col-sm-6">
						<select id="repUnit" class="form-control"></select>
					</div>
				</div>

				<div class="form-group col-lg-6 col-md-6 col-sm-6">
					<label class="control-label col-sm-4 keyCss" for="dataPat">上报属性
					</label>
					<div class="col-sm-6">
						<select id="dataPat" class="form-control"></select>
					</div>
				</div>

				<div class="form-group col-lg-6 col-md-6 col-sm-6">
					<label class="control-label col-sm-4 keyCss" for="mesIdFk">量测名称
					</label>
					<div class="col-sm-6">
						<select id="mesIdFk" class="form-control"></select>
					</div>
				</div>
			</form>
		</div>

		<div class="col-lg-12 col-md-12 col-sm-12" style="margin-top: 10px;margin-bottom: -2px">
			<button class="btn btn-primary " id="add_bisMItem_btn">
				<s:message code="ADD_TAG" />
			</button>
			<button class="btn btn-warning " id="upd_bisMItem_btn">
				<s:message code="UPDATE_TAG" />
			</button>
			<button class="btn btn-danger " id="del_bisMItem_btn">
				<s:message code="DELETE_TAG" />
			</button>
			<button class="btn btn-primary " id="insertbisMItem_btn">
				插入
			</button>
		</div>

		<div class="row">
			<div class="col-lg-12 col-md-12 col-sm-12" style="margin-top: 20px">
				<!-- Item信息列表 -->
				<div id="bisMItemListDiv" class="col-lg-12 col-md-12 col-sm-12">
					<table id="bisMItemListGrd" style="height: 1px;"></table>
					<div id="bisMItemListPg"></div>
				</div>
			</div>
		</div>

	</div>
</div>

<!-- 查询Q-time -->
<div id="queryBisMDialog" class="modal fade" tabindex="-1"
	 role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
				<h4 class="modal-title">
					<s:message code="QUERY_CONDITION_TAG" />
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<!-- <div class="row"> -->
				<form id="queryBisMForm" class="row form-horizontal" style="display: block">
					<div class="form-group">
						<label class="control-label col-xs-4" for="toolIdFkTxt">设备代码
						</label>
						<div class="col-xs-6">
							<input type="text" id="toolIdFkTxt" class="form-control" />
						</div>
					</div>

					<%--<div class="form-group">--%>
						<%--<label class="control-label col-xs-4" for="mdlIdFkTxt">产品代码--%>
						<%--</label>--%>
						<%--<div class="col-xs-6">--%>
							<%--<input type="text" id="mdlIdFkTxt" class="form-control" />--%>
						<%--</div>--%>
					<%--</div>--%>

					<div class="form-group">
						<label class="control-label col-xs-4" for="repUnitTxt">上报类别
						</label>
						<div class="col-xs-6">
							<input type="text" id="repUnitTxt" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-xs-4" for="dataPatTxt">上报属性
						</label>
						<div class="col-xs-6">
							<input type="text" id="dataPatTxt" class="form-control" />
						</div>
					</div>

					<div class="form-group">
						<label class="control-label col-xs-4" for="mesIdFkTxt">量测名称
						</label>
						<div class="col-xs-6">
							<input type="text" id="mesIdFkTxt" class="form-control" />
						</div>
					</div>

				</form>
				<!-- </div> -->
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="queryBisMDialog_cancelBtn" class="btn" data-dismiss="modal">
					<s:message code="CANCEL_TAG" />
				</a> <a id="queryBisMDialog_queryBtn" class="btn btn-primary"> <s:message
					code="QUERY_BTN_TAG" />
			</a>
			</div>
			<!--Modal footer-->
		</div>
	</div>
</div>

<!-- 添加或修改Q-time子项目-->
<div id="bisMItemDialog" class="modal fade" tabindex="-1" role="dialog"
	 aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
				<h4 class="modal-title">添加数据收集项目</h4>

			</div>
			<!--Modal header-->
			<div class="modal-body">
				<!-- <div class="row"> -->
				<form id="dialogBisMItemForm" class="row form-horizontal">
					<div class="form-group">
						<label class="control-label col-xs-4 keyCss"
							   for="bisMItemDialog_dataGroupSel">参数名称 </label>
						<div class="col-xs-6">
							<select id="bisMItemDialog_dataGroupSel" class="form-control"></select>
						</div>
					</div>

					<div class="form-group">
						<label class="control-label col-xs-4"
							   for="bisMItemDialog_dataDsc">参数说明 </label>
						<div class="col-xs-6">
							<input type="text" id="bisMItemDialog_dataDsc"
								   class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-xs-4"
							   for="bisMItemDialog_dataDsc">参数类型 </label>
						<div class="col-xs-6">
							<input type="text" id="bisMItemDialog_dataType"
								   class="form-control" />
						</div>
					</div>


					<div class="form-group">
						<label class="control-label col-xs-4"
							   for="bisMItemDialog_dataGroupSeq">组内顺序 </label>
						<div class="col-xs-6">
							<%-- <select id="bisMItemDialog_dataGroupSeq" class="form-control"></select> --%>
							<input type="text" id="bisMItemDialog_dataGroupSeq"
								   class="form-control"  onkeyup="this.value=this.value.replace(/\D/g,'')"
								   onafterpaste="this.value=this.value.replace(/\D/g,'')"/>
						</div>
					</div>

					<div class="form-group">
						<label class="control-label col-xs-4"
							   for="bisMItemDialog_dataAttr">参数属性 </label>
						<div class="col-xs-6">
							<select id="bisMItemDialog_dataAttr" class="form-control"></select>
						</div>
					</div>

					<div class="form-group">
						<label class="control-label col-xs-4"
							   for="bisMItemDialog_opiDataFlg">是否上报SPC </label>
						<div class="col-xs-2">
							<%-- <select id="pamItemDialog_skipflgTag" class="form-control"></select> --%>
							<input type="checkbox" id="bisMItemDialog_opiDataFlg"
								   style="width: 50%;" />
						</div>
					</div>

					<div class="form-group">
						<label class="control-label col-xs-4"
							   for="bisMItemDialog_specChkFlg">规格限制 </label>
						<div class="col-xs-2">
							<input type="checkbox" id="bisMItemDialog_specChkFlg"
								   style="width: 50%;" />
						</div>
					</div>

					<div class="form-group">
						<label class="control-label col-xs-4"
							   for="bisMItemDialog_uSpec">上规格 </label>
						<div class="col-xs-6">
							<input type="text" id="bisMItemDialog_uSpec"
								   class="form-control" onkeyup="value=value.replace(/[^(\+|\-)?\d.]/g,'')"
								   onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>
						</div>
					</div>

					<div class="form-group">
						<label class="control-label col-xs-4"
							   for="bisMItemDialog_lSpec">下规格 </label>
						<div class="col-xs-6">
							<input type="text" id="bisMItemDialog_lSpec"
								   class="form-control" onkeyup="value=value.replace(/[^\+\-\d.]/g,'')"
								   onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>
						</div>
					</div>

					<div class="form-group" hidden>
						<label class="control-label col-xs-4"
							   for="bisMItemDialog_specChkTyp">规格标准 </label>
						<div class="col-xs-6">
							<select id="bisMItemDialog_specChkTyp" class="form-control"></select>
						</div>
					</div>
				</form>
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="bisMItemDialog_cancelBtn" class="btn" data-dismiss="modal">
					<s:message code="CANCEL_TAG" />
				</a> <a id="bisMItemDialog_addPamItemBtn" class="btn btn-primary">
				<s:message code="UPATE_COMMIT_TAG" />
			</a>
			</div>
			<!--Modal footer-->
		</div>
	</div>
</div>

</body>
<%@ include file="/page/comPage/comJS.html"%>
<script type="text/javascript" src="js/page/6000/6A00.js"></script>
<script src="lib/bootstrap/assets/js/bootstrap-tooltip.js"></script>
<script src="lib/fileinput/js/xlsx.full.min.js"></script>
</html>